import axios from 'axios';
import { ref } from 'vue';

const getList = () => {
    const listData = ref([]);
    const load = async () => {
        const { data } = await axios.get('http://localhost:3000/listData');
        listData.value = data;
    }
    load();
    return {listData}
}

export default getList